@import "dialog";
@import "./mixin";
@import "./variables";
@import "./icons";

html {
    height: 100%;
}

* {
    max-height: 999999px;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

body {
    font-family: "PingFang SC", "-apple-system", "Heiti SC", "Helvetica", "Helvetica Neue", "Droid Sans Fallback", "Droid Sans";
    webkit-text-size-adjust: none;
    -webkit-user-select: none;
    font-size: .3rem;
    height: 100%;
    #app {
        height: 100%;
    }
}

h1, h2, h3, h4, h5 {
    font-weight: 400;
}

ul {
    li {
        list-style: none;
    }
}

.m-scroll {
    position: relative;
    width: 100%;
    @extend .flex-item;
    -webkit-overflow-scrolling: touch;
    overflow-y: scroll;
    &::-webkit-scrollbar {
        display: none;
    }
}

.scroller {
    .arrow {
        display: none;
    }
}

/*flexbox相关*/

/*水平排列*/
.flex-row {
    display: -webkit-box;
    display: -moz-box;
    display: -webkit-flex;
    display: flex;
}

/*撑满容器*/
.flex-item {
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    //width: 20%;
    -webkit-flex: 1;
    flex: 1;
}

/*垂直排列*/
.flex-column {
    @extend .flex-row;
    -webkit-box-orient: vertical;
    -webkit-flex-direction: column;
    -moz-flex-direction: column;
    flex-direction: column;
}

/*水平居中*/
.flex-row-between {
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -moz-justify-content: space-between;
}

/*垂直居中*/
.align-items {
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -moz-align-items: center;
}

/*弹出层*/
.m-mode {
    position: fixed;
    text-align: center;
    z-index: 1000;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    .loading {
        position: absolute;
        width: 100%;
        height: 100%;
        overflow: hidden;
        >div {
            position: relative;
            top: 70%;
            display: inline-block;
            padding: px2rem(20);
            max-width: 60%;
            word-break: break-all;
            border-radius: px2rem(20);
            background-color: rgba(0, 0, 0, 0.8);
        }
    }
    .spinner svg {
        width: px2rem(56);
        height: px2rem(56);
        stroke: #FFF;
        fill: #FFF;
    }
    .tips {
        color: rgba(#fff, .8);
        font-size: 14px;
        line-height: 14px;
    }
}

.no-data-text {
    text-align: center;
    line-height: px2rem(88);
    font-size: px2rem(28);
    color: $f-colorB !important;
}

input[type="search"]::-webkit-search-cancel-button {
    display: none;
}

input[type="search"] {
    -webkit-appearance: none;
}

.border-bottom-1px {
    @include border-1px($bl-colorA, bottom, solid, 0);
}

.border-top-1px {
    @include border-1px($bl-colorA, top, solid, 0);
}
